from django.urls import path, include
from . import views
from rest_framework.routers import SimpleRouter


router = SimpleRouter()
router.register('', views.LoginView, 'login')
router.register('', views.SendSMSView, 'send')  # 给被频率限制的新开一个路由
router.register('register', views.RegisterView, 'register')  # /user/register  向此url发post请求就是新增（注册）

urlpatterns = [
    path('', include(router.urls))
]
